﻿@model IEnumerable<MPosters.Models.Poster>

@{
    ViewBag.Title = "Home";
}

<div class ="panelright">
      <div id="login">
            @Html.Partial("_LoginPartial")
      </div>
</div>
<div class ="panelleft">

@foreach (var item in Model) {
    <div class ="poster">
        <div class="postertitle">
            @Html.DisplayFor(modelItem => item.Title)
        </div>
        <div class="postercontent">
             @Html.Raw(HttpUtility.HtmlDecode(item.Content))
        </div>

         <div class="posterimg">
             <img src=@item.PosterImgUrl>
         </div>  
         <div class="posterdate">
             @Html.DisplayFor(modelItem => item.PublishDate)
         </div>
    </div>

}
                
</div>

